package com.meida.module.bus.provider.service.impl;

import com.meida.common.mybatis.base.service.impl.BaseServiceImpl;
import com.meida.common.mybatis.entity.EntityMap;
import com.meida.common.mybatis.model.ResultBody;
import com.meida.common.mybatis.query.CriteriaQuery;
import com.meida.module.bus.client.entity.srmapi.basedata.SrmService;
import com.meida.module.bus.provider.mapper.srm.SrmServiceMapper;
import com.meida.module.bus.provider.service.SrmServiceService;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

/**
 * srm物料基本信息接口实现类
 *
 * @author flyme
 * @date 2020-12-21
 */
@Service
@Transactional(rollbackFor = Exception.class)
public class SrmServiceServiceImpl extends BaseServiceImpl<SrmServiceMapper, SrmService> implements SrmServiceService {


    @Override
    public ResultBody beforePageList(CriteriaQuery<SrmService> cq, SrmService srmService, EntityMap requestMap) {
        String valueKey = requestMap.get("valueKey");
        String value = requestMap.get("value");
        cq.like(valueKey, value);
        return super.beforePageList(cq, srmService, requestMap);
    }
}
